﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace MLBService.Resources
{
    [DataContract]
    public class UriLink
    {
        private string _description;

        #region Properties
        [DataMember]
        public string Uri {get; set; }

        [DataMember]
        public string Description {
            get
            {
                //return string.Format("<a class=\"mylink\" href=\"{0}\" onclick=\"resourceClick(this); return false;\">{1}</a>", this.Uri, this._description);
                return string.Format("<a class=\"mylink\" href=\"{0}\" onclick=\"return false;\">{1}</a>", this.Uri, this._description);
            }
            set
            {
                _description = value;
            }
        }

        public string GetFriendlyDescription() {
            return _description;
        }

        #endregion

        #region Constructors

        public UriLink(string uri, string description)
        {
            Uri = uri;
            Description = description;
        }
        public UriLink() { }

        #endregion
    }
}